package com.sunny.wordstudy;

import android.content.Context;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;
import java.util.Locale;

public class TTSGoogle
  implements TextToSpeech.OnInitListener, bk
{
  private TextToSpeech a = new TextToSpeech(paramContext, this);
  private Locale b;

  private TTSGoogle(Context paramContext, Locale paramLocale)
  {
    this.b = paramLocale;
  }

  public static bk getGoogleTTS(Context paramContext, Locale paramLocale)
  {
    return new TTSGoogle(paramContext, paramLocale);
  }

  public final int a(String paramString)
  {
    String str = paramString.replaceAll("\\<br\\>", ". ").replaceAll("\\<.*?>", "").replaceAll("\\[.*?\\]", "").replaceAll("\\[.*?\\]", "").replaceAll("&.*?;", "");
    this.a.setLanguage(this.b);
    this.a.speak(str, 0, null);
    return 0;
  }

  public final void a()
  {
    this.a.shutdown();
  }

  public void onInit(int paramInt)
  {
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.TTSGoogle
 * JD-Core Version:    0.5.3
 */